package changceilingcolor003;

import toxi.geom.Vec3D;


public class Pt {
	ChangCeilingColor003 p5;
	Vec3D loc;
	int colR=0;
	int colG=0;
	int colB=0;
	int Transparancy=50;
	//int Transparancy=100;
	int StepCount =0;
	boolean Switch =false;

	Pt(Vec3D _loc, int _colR,int _colG,int _colB,int _Transparancy,ChangCeilingColor003 parent) {
		p5 = parent;
		loc = _loc;
		colR = _colR;
		colG = _colG;
		colB = _colB;
		Transparancy=_Transparancy;
	}

	void run() {
		display();
		//moveUp();
		//deposit();
	}

	void display() {
		
		p5.stroke(colR, colG, colB, Transparancy);
		//p5.strokeWeight(5); for SiteA
		p5.strokeWeight(3);
	
		//if (p5.showDetail)
		//{
			//p5.noStroke();
			//p5.fill(colR, colG, colB, Transparancy);
			//p5.rect(loc.x, loc.y, p5.resulotion, p5.resulotion);
			
			//if (col > 29)
				//if(col > 50)
			//{
				//p5.stroke(0, 0, 255,20);
				//for (int j=1;j<3;j++) {
					//p5.stroke(0, 0, 255, 50-j*5);
					//p5.strokeWeight(5-j);
					//ellipse(loc.x, loc.y, j*attention_radios1/3, j*attention_radios1/3);
				//}
				//triangle(loc.x-cos(PI/6)*5, loc.y-sin(PI/6)*5, loc.x, loc.y+cos(PI/6)*5, loc.x+cos(PI/6)*5, loc.y-sin(PI/6)*5);///////////////////////////////////
			//}
		//}
		//p5.point(loc.x, loc.y, loc.z);


		//    print(" loc.x,y,.z "+loc.x+","+ loc.y+","+ loc.z+"\n");

		/*
	    //ceiling----------------------------------------------------------------------------------      
	     loc.z = map(col, 0,255,0,40);
	     stroke(0,col,col);
	     strokeWeight(3);
	     point(loc.x, loc.y, (height/3-loc.z));
	     strokeWeight(1);
	     if(col>250){
	     stroke(0);
	     strokeWeight(5);
	     point(loc.x, loc.y, (height/3-loc.z));
	     }
		 */
		// line(loc.x, loc.y, (height/3-loc.z),loc.x, loc.y, height/3);
		
		
		//draw visual grid
		//p5.stroke(235,30);
		p5.stroke(226,223,199,80);
	     p5.strokeWeight(1);
	     //if (loc.x%50==0 && loc.y%50==0){	    
	     //p5.line(loc.x, loc.y+25, loc.x+8,loc.y+25);
	     //p5.line(loc.x+13, loc.y+25, loc.x+20,loc.y+25);
	     //p5.line(loc.x+25, loc.y+25, loc.x+33,loc.y+25);
	     //p5.line(loc.x+38, loc.y+25, loc.x+45,loc.y+25);
	     
	     //p5.line(loc.x+25, loc.y, loc.x+25,loc.y+8);
	     //p5.line(loc.x+25, loc.y+13, loc.x+25,loc.y+20);
	     //p5.line(loc.x+25, loc.y+25, loc.x+25,loc.y+33);
	     //p5.line(loc.x+25, loc.y+38, loc.x+25,loc.y+45);
	     //}
	     
	     if (loc.x%50==0 && loc.y%50==0 &&loc.x<450 && loc.y<250){	    
	     p5.line(loc.x, loc.y+50, loc.x+7.5f,loc.y+50);
	     p5.line(loc.x+12.5f, loc.y+50, loc.x+20,loc.y+50);
	     p5.line(loc.x+25, loc.y+50, loc.x+32.5f,loc.y+50);
	    p5.line(loc.x+37.5f, loc.y+50, loc.x+45,loc.y+50);
	     
	     p5.line(loc.x+50, loc.y, loc.x+50,loc.y+7.5f);
	    p5.line(loc.x+50, loc.y+12.5f, loc.x+50,loc.y+20);
	     p5.line(loc.x+50, loc.y+25, loc.x+50,loc.y+32.5f);
	    p5.line(loc.x+50, loc.y+37.5f, loc.x+50,loc.y+45);
	     }
	     
	     
	}

}
